package com.hundredhealth.rose.model;

import java.io.Serializable;

/**
 * Created by JSTHZX on 2017/6/22.
 */

public class HealthActivity implements Serializable {
    private String id;
    private double latutide;
    private double longitude;
    private String location;
    private String date;
    private String vendorName;

    public HealthActivity(String id, double latutide, double longitude, String location, String date) {
        this.id = id;
        this.latutide = latutide;
        this.longitude = longitude;
        this.location = location;
        this.date = date;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public double getLatutide() {
        return latutide;
    }

    public void setLatutide(double latutide) {
        this.latutide = latutide;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getVendorName() {
        return vendorName;
    }

    public void setVendorName(String vendorName) {
        this.vendorName = vendorName;
    }

    @Override
    public boolean equals(Object o) {
        if (o instanceof HealthActivity) {
            return ((HealthActivity) o).id.equals(this.id);
        } else {
            return super.equals(o);
        }
    }
}
